package com.jiaying.patient.domain;

/**
 * 患者类
 */
public class Patient {

    private Integer patientId;
    private String realName;
    private Integer gender;
    private Integer age;
    private String homeAddress;
//    private Integer departmentId;  //????
//    private Integer recordId;  //????
    private Department department;  //关联的科室信息
    private Record record;  //关联的病历本信息
    private Integer state;
    private String cardNumber;

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public Patient(Integer patientId) {
        this.patientId = patientId;
    }
    public Patient() {

    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getHomeAddress() {
        return homeAddress;
    }

    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Record getRecord() {
        return record;
    }

    public void setRecord(Record record) {
        this.record = record;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Patient{" +
                "patientId=" + patientId +
                ", realName='" + realName + '\'' +
                ", gender=" + gender +
                ", age=" + age +
                ", homeAddress='" + homeAddress + '\'' +
                ", state=" + state +
                '}';
    }
}
